Micron Document
Fox's Git Mirrors

Node / RFnexus / code.git / commits / ca2e77b

Commit ca2e77b2826bcb60cbb6d2ba7a10669986c1d1e3


Parents : 7e589c8
Author : Ahmet Inan <inan@aicodix.de>
Date : 2024-02-11T09:48:40+01:00

keep the result symmetric

Changes

1 files changed, 2 insertions(+), 2 deletions(-)


Diff

diff --git a/polar_helper.hh b/polar_helper.hh
index 060eea2..e05c599 100644
--- a/polar_helper.hh
+++ b/polar_helper.hh
@@ -146,9 +146,9 @@ struct PolarHelper<SIMD<int8_t, WIDTH>>
static TYPE madd(TYPE a, TYPE b, TYPE c)
{
#ifdef __ARM_NEON
- return vqadd(vmul(a, vmax(b, vdup<TYPE>(-127))), c);
+ return vmax(vqadd(vmul(a, vmax(b, vdup<TYPE>(-127))), c), vdup<TYPE>(-127));
#else
- return vqadd(vsign(vmax(b, vdup<TYPE>(-127)), a), c);
+ return vmax(vqadd(vsign(vmax(b, vdup<TYPE>(-127)), a), c), vdup<TYPE>(-127));
#endif
}
};

Served by rngit 1.4.1 - Generated in 0.03s